package com.lsbc.pay.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lsbc.pay.common.ApiResponse;
import com.lsbc.pay.service.IPayOrderService;

@RequestMapping("/pay")
@RestController			
public class PayOrderController {

	@Autowired
	private IPayOrderService payOrderService;

	@GetMapping("/order")
	public ApiResponse<?> license(String key) {
		return ApiResponse.ok(payOrderService.payOrder(key));
	}

}
